﻿using System;
using System.Collections.Generic;
using System.Text;

namespace OgilvyOne.Model
{
    public class CmsArticleModel : IStaticGeneratableModel
    {

        private bool isfront = false;

        public bool Isfront
        {
            set { isfront = value; }
            get { return isfront; }
        }

        private int articleid;  //文章ID

        public int Articleid
        {
            get { return articleid; }
            set { articleid = value; this.ID = value; }
        }
        private int columnid;   //栏目ID

        public int Columnid
        {
            get { return columnid; }
            set { columnid = value; this.ColumnID = value; }
        }
        private string title;   //文章标题

        public string Title
        {
            get { return title; }
            set { title = value; }
        }
        private string content; //文章内容

        public string Content
        {
            get { return content; }
            set { content = value; }
        }
        private DateTime addtime;   //添加时间

        public DateTime Addtime
        {
            get { return addtime; }
            set { addtime = value; }
        }

        public string AddtimeShort
        {
            get { return modifytime.Year>1900? modifytime.ToShortDateString(): addtime.ToShortDateString(); }
        }

        private string addusername; //添加人

        public string Addusername
        {
            get { return addusername; }
            set { addusername = value; }
        }
        private DateTime starttime; //开始时间

        public DateTime Starttime
        {
            get { return starttime; }
            set { starttime = value; }
        }
        private DateTime endtime;   //结束时间

        public DateTime Endtime
        {
            get { return endtime; }
            set { endtime = value; }
        }
        private string articletype = "1"; //文章类型

        public string Articletype
        {
            get { return articletype; }
            set { articletype = value; }
        }
        private string titleimg = "";    //标题图

        public string Titleimg
        {
            get { return titleimg; }
            set { titleimg = value; }
        }
        private string author = "";      //作者

        public string Author
        {
            get { return author; }
            set { author = value; }
        }

        private int expertid;   //营养健康专家ID

        public int ExpertId
        {
            set { expertid = value; }
            get { return expertid; }
        }

        private string authoremail =""; //作者email

        public string Authoremail
        {
            get { return authoremail; }
            set { authoremail = value; }
        }
        private string indextop;    //是否首页热点

        public string Indextop
        {
            get { return indextop; }
            set { indextop = value; }
        }
        private string sorttop;     //是否栏目置顶

        public string Sorttop
        {
            get { return sorttop; }
            set { sorttop = value; }
        }
        private string istouch = "0";     //

        public string Istouch
        {
            get { return istouch; }
            set { istouch = value; }
        }
        private int hits = 0;           //访问数

        public int Hits
        {
            get { return hits; }
            set { hits = value; }
        }

        private int colls;
        public int Colls
        {
            get { return colls; }
            set { colls = value; }
        }
        private int templateid;  //模板ID

        public int Templateid
        {
            get { return templateid; }
            set { templateid = value; this.TemplateID = value; }
        }
        private string summary = ""; //简介

        public string Summary
        {
            get { return summary; }
            set { summary = value; }
        }
        private string source = "";  //来源

        public string Source
        {
            get { return source; }
            set { source = value; }
        }
        private string sourceurl = "";   //来源url

        public string Sourceurl
        {
            get { return sourceurl; }
            set { sourceurl = value; }
        }

        private string linkpath = "";    //外部链接

        public string Linkpath
        {
            get { return linkpath; }
            set { linkpath = value; }
        }
        private string tag = "";         //文章标签

        public string Tag
        {
            get { return tag; }
            set { tag = value; }
        }
        private string docstate = "0";    //发布状态 1发布

        public string Docstate
        {
            get { return docstate; }
            set { docstate = value; }
        }
        private string auditingman = ""; //审核人

        public string Auditingman
        {
            get { return auditingman; }
            set { auditingman = value; }
        }
        private DateTime auditingtime;  //审核时间

        public DateTime Auditingtime
        {
            get { return auditingtime; }
            set { auditingtime = value; }
        }
        private string auditingstate = "0";   //审核状态

        public string Auditingstate
        {
            get { return auditingstate; }
            set { auditingstate = value; }
        }
        //SEO
        private string articletitle = "";    //seo title

        public string Articletitle
        {
            get { return articletitle; }
            set { articletitle = value; }
        }
        private string articlekeyword = "";  //key

        public string Articlekeyword
        {
            get { return articlekeyword; }
            set { articlekeyword = value; }
        }
        private string articledesc = "";     //desc

        public string Articledesc
        {
            get { return articledesc; }
            set { articledesc = value; }
        }
        //END
        private string isstaticpub = "0";     //是否静态发布

        public string Isstaticpub
        {
            get { return isstaticpub; }
            set { isstaticpub = value; }
        }
        private string staticpagename = "";  //静态发布文件名

        public string Staticpagename
        {
            get { return staticpagename; }
            set { staticpagename = value; this.HtmlFileName = value; }
        }

        private DateTime modifytime;

        public DateTime Modifytime
        {
            get { return modifytime; }
            set { modifytime = value; }
        }
        private string modifyusername;

        public string Modifyusername
        {
            get { return modifyusername; }
            set { modifyusername = value; }
        }

        private int order_num;

        public int OrderNum
        {
            get { return order_num; }
            set { order_num = value; }
        }
        public string ADTIME
        {
            get { return starttime.ToString("yyyy/MM/dd"); }
        }

        private CmsArticleMore mores = null; //文章更多信息

        public CmsArticleMore Mores
        {
            set { mores = value; }
            get { return mores; }
        }

        #region IStaticGeneratableModel 成员
        public int? ID { get; set; }                    // 活动ID
        public int? TemplateID { get; set; }
        public int? ColumnID { get; set; }
        public bool IsHtmlFile { get; set; }
        public int Preview { get; set; }
        public string HtmlFileName { get; set; }
        public string SEOTitle { get; set; }
        public string SEOMetaKeywords { get; set; }
        public string SEOMetaDescription { get; set; }
        #endregion
    }
}
